<template>
  <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="6">
    <el-form-item :label="label" :prop="prop">
      <slot></slot>
    </el-form-item>
  </el-col>
</template>

<script>
 /**
   * search 组件的子组件
   * 
   * props：
   *    label  同 el-form-item
   *    prop   同 el-form-item
   */
  export default {
    props: {
      label: String,
      prop: String
    },
    name: 'SearchItem'
  }
</script>